package weiyao.xinxidasai.service;

import org.springframework.web.multipart.MultipartFile;
import weiyao.xinxidasai.DTO.FileTreeNode;
import weiyao.xinxidasai.DTO.Result;

import java.io.File;
import java.util.List;
import java.util.Map;

public interface FileService {





    boolean fileExistsInFolder(String fileName, Long folderId);





    Result deleteFile(Long fileId);



    Result renameFile(Long fileId, String newName);

    List<FileTreeNode> searchFileTreesByKeyword(Long userId, String keyword);




    Result moveFile(Long fileId, Long targetFolderId);

    Result lockFile(Long fileId, String password);

    Result unlockFile(Long fileId, String password);


    Result lockFileFace(Long filesId);

    Result unlockFileWithFace(MultipartFile file, Long filesId);
}
